﻿package common.transaction;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Retention(RetentionPolicy.RUNTIME) //设置保持性 
@Target(ElementType.METHOD) //指定目标
public @interface TransactionAnnotation {
	public enum TransactionType {QUERY, UPDATE}; 

	TransactionType transactionType() default TransactionType.QUERY; 

}
